//package com.xingkeduo.pojo;
//
//import com.fasterxml.jackson.databind.JsonNode;
//import com.fasterxml.jackson.databind.ObjectMapper;
//
//public class NextConsumerTjo {
//	private static final ObjectMapper MAPPER = new ObjectMapper();
//
//	public static NextConsumer createTable(String json) throws Throwable {
//		NextConsumer table = new NextConsumer();
//		if (json.isEmpty())
//			return null;
//
//		JsonNode root = MAPPER.readTree(json);
//		if (!root.isObject())
//			throw new Throwable("参数格式不正确");
//		if (root == null)
//			throw new Throwable("参数非法");
//
//		table.setShopId(root.path("shopid").asText().trim()).setConsumerId(root.path("consumerid").asText().trim());
//
//		return table;
//	}
//}
